package com.zoro.barn.business.service.system.business.user.entity;

import com.zoro.barn.business.service.system.business.role.entity.BarnRole;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author zhaoxingwu
 */
public class BarnUser implements Serializable {

    private static final long serialVersionUID = 1439445867027304252L;
    /**
     * 主键
     */
    private String pid;
    /**
     * 姓名
     */
    private String userName;
    /**
     * password
     */
    private String password;
    /**
     *
     */
    private Date createTime;
    /**
     *
     */
    private String userAccount;
    /**
     * 1是，2否
     */
    private String enable;
    /**
     * 创建人id
     */
    private String createId;

    /**
     * 更新人id
     */
    private String updateId;
    /**
     * 更新时间
     */
    private Date updateTime;

    private List<BarnRole> roles;

    public List<BarnRole> getRoles() {
        return roles;
    }

    public void setRoles(List<BarnRole> roles) {
        this.roles = roles;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        return "BarnUser{" +
                "pid='" + pid + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", userAccount='" + userAccount + '\'' +
                ", enable='" + enable + '\'' +
                ", createId='" + createId + '\'' +
                '}';
    }
}
